package com.woniu.airent.controller;

import com.woniu.airent.service.ArticleManageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("manageArticle")
public class ManageArticleController {

    @Autowired
    ArticleManageService service;

    @RequestMapping("/change")
    public String change(int status,int id){
        int result = service.updataArticleStatus(status,id);
        return result!=0?"success":"error";
    }

}
